// filter:对数组过滤，返回满足条件的数组；不改变原数组
let ages = [32, 33, 16, 40];

let res = ages.filter((item) => {
  return item > 20;
});

console.log(res,ages);
